package com.txhy.certificatechain.model.bean;

import java.util.List;

/*
 * -----------------------------------------------------------------
 * Copyright (C) 2018-2030, by your company, All rights reserved.
 * -----------------------------------------------------------------
 * 文    件: UserBean.java
 * 作    者: 侯建军
 * 版    权: 1.0.0
 * 描    述: 用户实体类
 * 创建时间: 2018/9/19 15:04
 * 更新时间：2018/9/19 15:04
 * -----------------------------------------------------------------
 * 2018/9/19 15:04: 创建 UserBean.java (侯建军);
 * -----------------------------------------------------------------
 */
public class UserBean {
    /**
     * status : 200
     * msg : 成功
     * data : {"cardName":"XXX","phone":"18903463950","careteTime":1533795899000,"avatar":"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1533804093099&di=686f6cc9e85f371b9401971bd156a2f0&imgtype=0&src=http%3A%2F%2Fpic.90sjimg.com%2Fdesign%2F00%2F67%2F59%2F63%2F58e89bf26f7bc.png","type":1,"userId":224937725529296896,"map":[{"logo":"AABbWXRc6Pk044.jpg","id":224937725529296891,"enterpriseName":"山西脑袋大集团有限公司"}],"status":false}
     */

    private int status;
    private String msg;
    /**
     * cardName : XXX
     * phone : 18903463950
     * careteTime : 1533795899000
     * avatar : https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1533804093099&di=686f6cc9e85f371b9401971bd156a2f0&imgtype=0&src=http%3A%2F%2Fpic.90sjimg.com%2Fdesign%2F00%2F67%2F59%2F63%2F58e89bf26f7bc.png
     * type : 1
     * userId : 224937725529296896
     * map : [{"logo":"AABbWXRc6Pk044.jpg","id":224937725529296891,"enterpriseName":"山西脑袋大集团有限公司"}]
     * status : false
     */

    private DataEntity data;

    public void setStatus(int status) {
        this.status = status;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    public DataEntity getData() {
        return data;
    }
    /**
     *
     */
    public static class DataEntity {
        private String cardName;
        private String phone;
        private long careteTime;
        private String avatar;
        private int userType;
        private long userId;
        private boolean status;
        /**
         * logo : AABbWXRc6Pk044.jpg
         * id : 224937725529296891
         * enterpriseName : 山西脑袋大集团有限公司
         */

        private List<MapEntity> map;

        public int getUserType() {
            return userType;
        }

        public void setUserType(int userType) {
            this.userType = userType;
        }

        public void setCardName(String cardName) {
            this.cardName = cardName;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public void setCareteTime(long careteTime) {
            this.careteTime = careteTime;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public void setUserId(long userId) {
            this.userId = userId;
        }

        public void setStatus(boolean status) {
            this.status = status;
        }

        public void setMap(List<MapEntity> map) {
            this.map = map;
        }

        public String getCardName() {
            return cardName;
        }

        public String getPhone() {
            return phone;
        }

        public long getCareteTime() {
            return careteTime;
        }

        public String getAvatar() {
            return avatar;
        }

        public long getUserId() {
            return userId;
        }

        public boolean isStatus() {
            return status;
        }

        public List<MapEntity> getMap() {
            return map;
        }

        /**
         *
         */
        public static class MapEntity {
            private String logo;
            private long id;
            private String enterpriseName;
            private String userType;
            private String status;
            private String accountNo;
            private String  roleId;
            private String  roleName;
            public String getRoleId() {
                return roleId;
            }

            public void setRoleId(String roleId) {
                this.roleId = roleId;
            }

            public String getRoleName() {
                return roleName;
            }

            public void setRoleName(String roleName) {
                this.roleName = roleName;
            }

            public String getAccountNo() {
                return accountNo;
            }

            public void setAccountNo(String accountNo) {
                this.accountNo = accountNo;
            }

            private boolean isCheck;

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getUserType() {
                return userType;
            }

            public void setUserType(String userType) {
                this.userType = userType;
            }

            public boolean isCheck() {
                return isCheck;
            }

            public void setCheck(boolean check) {
                isCheck = check;
            }

            public void setLogo(String logo) {
                this.logo = logo;
            }

            public void setId(long id) {
                this.id = id;
            }

            public void setEnterpriseName(String enterpriseName) {
                this.enterpriseName = enterpriseName;
            }

            public String getLogo() {
                return logo;
            }

            public long getId() {
                return id;
            }

            public String getEnterpriseName() {
                return enterpriseName;
            }
        }
    }
}